from django.shortcuts import render,HttpResponseRedirect

# Create your views here.
#电影主界面
def index(request):
    pass
    content = {"unavailable":"['1_3','1_4','4_4','4_5','4_6','4_7','4_8']"}
    return render(request,'order_page.html',content)

def textpost(request):
    moviename = request.POST['moviename']
    num = int(request.POST['num'])

    context = {'a': num, 'b': moviename, 'c': num * 30, 'num':num}
    return render(request,'pay.html',context)


